package com.study.a12waitandnotify;

public class ThreadDemo {
    public static void main(String[] args) {

        Cook c=new Cook();
        Foodie f=new Foodie();
        c.setName("厨师");
        f.setName("顾客");
        c.start();
        f.start();
    }
}
